﻿/// <summary>
/// Create a new list item.
/// </summary>
using System.Collections.Generic;
[Microsoft.SharePoint.Linq.ContentTypeAttribute(Name = "Item", Id = "0x01", List = "CompanyHistory")]
public partial class CompanyHistoryItem 
{
    public string PageTitle { get; set; }
    public string ID { get; set; }
    public string Title { get; set; }
    [Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description", Storage = "_description", FieldType = "Note")]
    public string Description
    {
        get;
        set;
    }

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date1", Storage = "_date1", FieldType = "DateTime")]
    //public string Date1
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description1", Storage = "_description1", FieldType = "Note")]
    //public string Description1
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture1", Storage = "_smallPicture1", FieldType = "Text")]
    //public string SmallPicture1
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture1", Storage = "_largePicture1", FieldType = "Text")]
    //public string LargePicture1
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date2", Storage = "_date2", FieldType = "DateTime")]
    //public string Date2
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description2", Storage = "_description2", FieldType = "Note")]
    //public string Description2
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture2", Storage = "_smallPicture2", FieldType = "Text")]
    //public string SmallPicture2
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture2", Storage = "_largePicture2", FieldType = "Text")]
    //public string LargePicture2
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date3", Storage = "_date3", FieldType = "DateTime")]
    //public string Date3
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description3", Storage = "_description3", FieldType = "Note")]
    //public string Description3
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture3", Storage = "_smallPicture3", FieldType = "Text")]
    //public string SmallPicture3
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture3", Storage = "_largePicture3", FieldType = "Text")]
    //public string LargePicture3
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date4", Storage = "_date4", FieldType = "DateTime")]
    //public string Date4
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description4", Storage = "_description4", FieldType = "Note")]
    //public string Description4
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture4", Storage = "_smallPicture4", FieldType = "Text")]
    //public string SmallPicture4
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture4", Storage = "_largePicture4", FieldType = "Text")]
    //public string LargePicture4
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date5", Storage = "_date5", FieldType = "DateTime")]
    //public string Date5
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description5", Storage = "_description5", FieldType = "Note")]
    //public string Description5
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture5", Storage = "_smallPicture5", FieldType = "Text")]
    //public string SmallPicture5
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture5", Storage = "_largePicture5", FieldType = "Text")]
    //public string LargePicture5
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Date6", Storage = "_date6", FieldType = "DateTime")]
    //public string Date6
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Description6", Storage = "_description6", FieldType = "Note")]
    //public string Description6
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "SmallPicture6", Storage = "_smallPicture6", FieldType = "Text")]
    //public string SmallPicture6
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "LargePicture6", Storage = "_largePicture6", FieldType = "Text")]
    //public string LargePicture6
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Language", Storage = "_language", FieldType = "Choice")]
    //public string Language
    //{
    //    get;
    //    set;
    //}

    //[Microsoft.SharePoint.Linq.ColumnAttribute(Name = "DeviceType", Storage = "_deviceType", FieldType = "Choice")]
    //public string DeviceType
    //{
    //    get;
    //    set;
    //}

    public List<CompanyHistoryEvent> Events { get; set; }
}

public class CompanyHistoryEvent
{
    public string Date
    {
        get;
        set;
    }

    public string Description
    {
        get;
        set;
    }

    public string SmallPicture
    {
        get;
        set;
    }

    public string LargePicture
    {
        get;
        set;
    }
}